package com.project.bean;

import java.time.LocalDate;

//设施表
public class FacilityBean {
    /*设施id*/
    private int id;
    /*设施损坏信息*/
    private String msg;
    /*损坏日期*/
    private LocalDate time = LocalDate.now();
    /*解决状态*/
    private String state = "未解决";
    /*房间*/
    private RoomBean roomBean;

    public FacilityBean() {
    }

    public FacilityBean(String msg, Integer roomId) {
        this.msg = msg;
        this.roomBean = new RoomBean();
        this.roomBean.setId(roomId);
    }

    @Override
    public String toString() {
        return "FacilityBean{" +
                "id=" + id +
                ", msg='" + msg + '\'' +
                ", time=" + time +
                ", state='" + state + '\'' +
                ", roomBean=" + roomBean +
                "\n";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public LocalDate getTime() {
        return time;
    }

    public void setTime(LocalDate time) {
        this.time = time;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }
}
